<template>
  <!-- 明细页面弹出框-->
  <el-dialog
    title="系统状态查询明细"
    center
    :visible.sync="open"
    width="1024px"
    :close-on-click-modal="true"
    @close="closeFn"
  >
    <el-form ref="detailsForm" :model="formData" label-width="240px" :disabled="true">
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="参与行行号：" prop="bankCode">
            <el-input v-model="formData.bankCode" placeholder="" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="系统类型：" prop="sysType">
            <el-select v-model="formData.sysType" placeholder="" style="width: 100%">
              <el-option
                v-for="dict in dictMap.SYS_CODE"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="接入点：" prop="accessPoint">
            <el-input v-model="formData.accessPoint" placeholder="" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="登录状态：" prop="opType">
            <el-select v-model="formData.opType" placeholder="" style="width: 100%">
              <el-option
                v-for="dict in dictMap.LOGINOPERATIONTYPECODE"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="系统日期：" prop="curSysDate">
            <el-date-picker
              v-model="formData.curSysDate"
              type="date"
              value-format="yyyyMMdd"
              placeholder=""
              style="width: 100%"
            ></el-date-picker>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="系统当前状态：" prop="curSysStatus">
            <el-select v-model="formData.curSysStatus" placeholder="" style="width: 100%">
              <el-option
                v-for="dict in dictMap.SYSTEMSTATUS"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="系统上一工作日：" prop="preSysDate">
            <el-date-picker
              v-model="formData.preSysDate"
              type="date"
              value-format="yyyyMMdd"
              placeholder=""
              style="width: 100%"
            ></el-date-picker>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="系统上一个状态：" prop="preSysStatus">
            <el-select v-model="formData.preSysStatus" placeholder="" style="width: 100%">
              <el-option
                v-for="dict in dictMap.SYSTEMSTATUS"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="系统前两个工作日：" prop="ppreSysDate">
            <el-date-picker
              v-model="formData.ppreSysDate"
              type="date"
              value-format="yyyyMMdd"
              placeholder=""
              style="width: 100%"
            ></el-date-picker>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="系统下一工作日：" prop="nextSysDate">
            <el-date-picker
              v-model="formData.nextSysDate"
              type="date"
              value-format="yyyyMMdd"
              placeholder=""
              style="width: 100%"
            ></el-date-picker>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="最后一次修改时间：" prop="modDate">
            <el-date-picker
              v-model="formData.modDate"
              type="datetime"
              value-format="yyyyMMddHHmmss"
              placeholder=""
              style="width: 100%"
            ></el-date-picker>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="清算账户余额预警开启关闭类型：" prop="clrSwitchType">
            <el-select v-model="formData.clrSwitchType" placeholder="" style="width: 100%">
              <el-option
                v-for="dict in dictMap.SWITCHTYPECODE"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="清算账户余额警戒金额正负标志：" prop="clrWarnPmFlag">
            <el-select v-model="formData.clrWarnPmFlag" placeholder="" style="width: 100%">
              <el-option
                v-for="dict in dictMap.PLUSMINUSTYPECODE"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row></el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="清算账户余额可用额度预警值：" prop="clrWarnValue">
            <el-input v-model="formData.clrWarnValue" placeholder="" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="清算账户余额最后修改时间：" prop="clrTime">
            <el-date-picker
              v-model="formData.clrTime"
              type="datetime"
              value-format="yyyyMMddHHmmss"
              placeholder=""
              style="width: 100%"
            ></el-date-picker>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="净借记限额可用额度预警值开启关闭类型：" prop="ndlWarnType">
            <el-select v-model="formData.ndlWarnType" placeholder="" style="width: 100%">
              <el-option
                v-for="dict in dictMap.SWITCHTYPECODE"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="净借记限额可用额度预警值：" prop="ndlWarnValue">
            <el-input v-model="formData.ndlWarnValue" placeholder="" />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="净借记限额最后修改时间：" prop="ndlTime">
            <el-date-picker
              v-model="formData.ndlTime"
              type="datetime"
              value-format="yyyyMMddHHmmss"
              placeholder=""
              style="width: 100%"
            ></el-date-picker>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button @click="closeFn">关闭</el-button>
    </div>
  </el-dialog>
</template>
<script>
export default {
  name: "ccmsSystemDetails",
  components: {},
  props: {
    dictMap: {
      type: Object,
      default: () => {
        return {};
      },
    },
    formData: {
      type: Object,
      default: () => {
        return {};
      },
    },
  },
  data() {
    return {
      // 是否显示弹出层
      open: false,
    };
  },
  mounted() {},
  methods: {
    // 表单重置
    reset() {
      this.resetForm("logForm");
    },
    closeFn() {
      this.open = false;
    },
    show() {
      this.open = true;
    },
    cancel() {
      this.open = false;
      this.reset();
    },
  },
};
</script>
<style>
.label-header-msg {
  font-weight: bold;
}

.form-card {
  margin-bottom: 10px;
}
</style>
